package com.zyy.builder.demo01;

/**
 * 具体的Build 如：工人 具体施工，对外可以获取这个产品
 */
public class Worker extends Builder {
    private Product product;

    public Worker() {
        product = new Product();
    }

    @Override
    void buildA() {
        product.setStepA("打地基");
    }

    @Override
    void buildB() {
        product.setStepB("钢筋混凝土");
    }

    @Override
    void buildC() {
        product.setStepC("接水电");
    }

    @Override
    void buildD() {
        product.setStepD("粉刷");
    }

    @Override
    Product getProduct() {
        return product;
    }
}
